Skip to content

Sync ako/mxcli: mapping value types, Data grid 2 column keys and widget template fixes; fifth parity sweep - #2023

Merged
ako merged 15 commits into
mendixlabs:mainfrom
ako:main
Dec 2, 2026
Merged

ako merged 15 commits into
mendixlabs:mainfrom
ako:main

Conversation

@ako

@ako ako commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

Syncs ako/mxcli:main into upstream: 6 commits since the last sync (#2008) — three write fixes that mx check or the app caught after a clean exec (mapping value types, Data grid 2 column keys, a carried-over widget template), and the fifth check-gap parity sweep.

Fixes #1998, fixes #1999, fixes #2006.

Mappings

  • A mapping value stores the JSON member's type where it converts (Import mapping: value element gets the bound attribute's type instead of the JSON member's type, so mx check fails with CE5015 (mxcli check passes) #1998). An import mapping binding a JSON integer to a String attribute stored the value with the attribute's type, which mxbuild compares with the schema member: CE5015. A value now stores the attribute's type where it aligns with the member (an integer into Long, a string into DateTime) and the member's type otherwise, for import and export alike. MDL127, added in the last sync, had been measured against the old writes: re-measured over every member × attribute pairing on 11.12.6, it now accepts the conversions mxbuild accepts and names CE6099 / CE0227 for the rest. A Marketplace mapping (MxGenAIConnector) whose rebuild used to differ now round-trips.

Data grid 2

Check coverage

  • Fifth parity sweep, f99–f125, measured on MxBuild 11.16.1: seven gaps where check -p passes and mx check rejects, four where check passes and exec refuses, six already refused by check, three that build clean. Fixtures and results only; the checks follow

claude and others added 15 commits December 2, 2026 00:08
Twenty broken-script fixtures for areas the first four sweeps did not
probe: calculated attributes, validation rules, list operations, downloads,
create members, input widgets, data grid constraints, menus, user task
pages, view entities, indexes and page parameters. Measurements against
MxBuild 11.16.1 follow with the README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
Seven gaps (check -p passes, mx check rejects): f104 f105 f108 f110 f114
f117 f119. Four where check passes and exec refuses: f99 f100 f120 f125.
Six already refused by check, three build clean. f100 and f119 are
reordered so the calculated attribute's microflow exists first; f125 keeps
the forward reference as its own case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
`alter page … insert … column (ColumnWidth: autoFit)` stored `autofit`:
the ALTER column builder lowercased every enumeration value, and Data
grid 2 compares its keys exactly, so the column rendered as auto-fill.
minWidth was hard-coded `auto`. The column property IDs now carry the
stored type's enumeration keys; the builder writes the declared key the
value names, and writes minWidth and any other declared primitive as
stated. check judges an inserted column by the grid's column schema
instead of as a parentless widget that warned about minWidth.

Fixes #2718

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
…24rqgv

fix: an alter-inserted Data grid 2 column keeps its enumeration keys
`create or modify page` turning a Data grid 2 attribute column into a
customContent column wrote the column's tooltip null, the property the
widget hides for custom content, and canon.CarryUnexpressed put the
stored empty ClientTemplate back: null over an empty template is how it
recognises Studio Pro's unset screen-reader label. mx check reported
CE0463 on the grid. Inside a CustomWidgets$WidgetValue the writer's null
is deliberate, so that carry now skips widget values.

Fixes #2732

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
…24rqgv

fix: a pluggable widget value's null template is not carried over
An import mapping binding a JSON integer to a String attribute stored the
value element with the attribute's type; mxbuild compares that with the
schema member and reported CE5015. A value element now stores the
attribute's type where it aligns with the member (an integer into Long, a
string into DateTime, which needs it) and the member's type otherwise, for
import and export alike. MDL127's "exact match" table had been measured
against the old writes; re-measured over every member x attribute pairing
on 11.12.6, it now accepts the conversions mxbuild accepts and names
CE6099 / CE0227 for the rest.

Fixes #2714

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
MxGenAIConnector.IM_Collection_RetrieveNearestNeighbors stores
DataTypes$IntegerType for a value bound to a Decimal attribute, which
knownLossy recorded as the one difference a rebuild made. With the
member's type stored where the mapping converts (#2714) the
rebuild matches it, and the fixture test asks for the entry to go.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
…24rqgv

fix: a mapping value stores the JSON member's type where it converts
check-gap: fifth parity sweep, f99-f125 (MxBuild 11.16.1)
…ameter

Moving a local list to the caller (a parameter $SaleList added, the
`create list` that declared it removed) was refused under mdl 1: "drop
$SaleList: $SaleList is still used by: add $NewSale to $SaleList". The
splice counted the dropped producer's readers without seeing that the
flow it writes has a parameter of that name, which is what they read.

Fixes #2726

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
…24rqgv

fix: create or modify can turn a local variable into a same-named parameter
A Marketplace module held a microflow and a snippet both named
Lib.Overview. The SEC012 reach model keyed documents by qualified name
alone, so a menu item calling the microflow reached the snippet without
the execute check, and lint reported CE2729 on what the snippet shows for
roles that cannot reach it. The walk's nodes are now kind and name, from
refs.SourceType, the navigation columns and the permission element type.
show references adds the target type when a name has more than one kind.

Fixes #2730

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
…24rqgv

fix: SEC012 tells a microflow from a snippet of the same name
@ako
ako merged commit 9128126 into mendixlabs:main Dec 2, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment